//
//  UIViewController + NavigationBar.swift
//  Edaixi-iOS
//
//  Created by 刘树华 on 2017/11/28.
//  Copyright © 2017年 刘树华. All rights reserved.
//

import Foundation
import UIKit

extension UIViewController{
    
    var navigationBarHidden : Bool {
        set {
        self.navigationController?.setNavigationBarHidden(newValue, animated: true)
        }
        get {
            if let hidden = self.navigationController?.isNavigationBarHidden {
                return hidden
            }else{
                return true
            }
           
        }
        
    }
    
    
}
